/*
 * Group 3, User Interface Programming II (vt11)
 * Pooya | Flora | Monica | Can
 */
package vical.view.tutorial.action;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import vical.model.Internationalization;
import vical.view.tutorial.TutorialAddTask;
import vical.view.tutorial.TutorialContainer;

/**
 * The action to trigger a tutorial of adding task
 * 
 * @author Can
 */
public class TutorialAddTaskAction extends AbstractAction {

    TutorialContainer container;

    public TutorialAddTaskAction(TutorialContainer container) {
        super(Internationalization.getString("tutorial_how_to_add_task"));
        this.container = container;
    }

    public void actionPerformed(ActionEvent e) {
        container.setGlassTutorial(new TutorialAddTask(container));
    }
}
